#include "dominion.h"
#include "dominion_helpers.h"
#include <string.h>
#include <assert.h>
#include <stdio.h>

#define DEBUG 0
#define NOISY_TEST 1

//  unit tests the function numHandCards().
int main() {
	int r, s;

	int k[10] = {adventurer, council_room, feast, gardens, mine,
			remodel, smithy, village, baron, great_hall};

	struct gameState G;
	
	r = initializeGame(4, k, 1, &G);	

	printf("initializeGame(4, k, 1, &G) = %d\n", r);
	assert(r == 0);

	s = G.handCount[whoseTurn(&G)];
	r = numHandCards(&G);
	printf("numHandCards(&G) = %d\n", r);
	assert(r == s);
	
	printf("No assertions failed\n");

	return 0;
}
